package com.zzr.demo.alipay.service;

import com.zzr.demo.alipay.vo.PayRequest;
import com.zzr.demo.alipay.vo.ResultStatus;

import java.util.Map;

/**
 * @author: xiaomi
 * @date: 2021/8/31
 * @description:
 */
public interface ThirdPayService {
    /**
     * 支付宝支付统一下单接口
     *
     * @param request
     * @return
     */
    ResultStatus aliPayUnifiedOrder(PayRequest request);

    /**
     * 支付宝回调
     *
     * @param requestParams
     * @return
     */
    String aliPayNotify(Map requestParams);

    /**
     * 支付宝支付统一下单接口(公钥证书方式)
     *
     * @param request
     * @return
     */
    ResultStatus aliPayCertUnifiedOrder(PayRequest request);

    /**
     * 支付宝回调(公钥证书方式)
     *
     * @param requestParams
     * @return
     */
    String aliPayCertNotify(Map requestParams);
}
